
USE [bmig_Mensual_Post_cadena]
GO

IF EXISTS (SELECT name FROM   sysobjects WHERE  name = 'WASP_M0011_CREATBL_Seg_SaludCu' AND type = 'P')
    DROP PROCEDURE [dbo].[WASP_M0011_CREATBL_Seg_SaludCu]
GO

CREATE PROCEDURE [dbo].[WASP_M0011_CREATBL_Seg_SaludCu]

AS

BEGIN 
		if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[seg_saludCu]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
		drop table [dbo].[seg_saludCu]


		CREATE TABLE [dbo].[seg_saludCu] (
			[operacion] [int] NOT NULL ,
			[cuenta] [int] NOT NULL ,
			[sucursal] [smallint] NOT NULL ,
			[cuotas] [int] NULL 
		) ON [PRIMARY]

END